<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>用户注册</title>
<link rel="stylesheet" href="<c:url value='/css/user/regist.css'/>">
<link rel="stylesheet" href="<c:url value='/css/bootstrap.css'/>">

<script type="text/javascript"
	src="<c:url value='/jquery/jquery-1.11.3.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/user/regist.js'/>"></script>



</head>
<body>
	<div class="divMain">
		<div class="divTitle">
			<span class="spanTitle">新用户注册</span>
		</div>
		<div class="divBody">
			<form action="<c:url value='/UserServlet'/>" method="post">
								<input type="hidden" name="method"  value="regist"/>
				<table class="tableForm">
					<tr>
						<td class="tdLabel">用户名：</td>
						<td class="tdInput"><input class="input" type="text"
							name="loginname" id="loginname" value="${form.loginname }" /></td>
						<td class="tdError"><label class="labelError"
							id="loginnameError">${errors.loginname }</label></td>
					</tr>
					<tr>
						<td class="tdLabel">登陆密码：</td>
						<td class="tdInput"><input class="input" type="password"
							name="loginpass" id="loginpass" value="${form.loginpass }" /></td>
						<td class="tdError"><label class="labelError"
							id="loginpassError">${errors.loginpass }</label></td>
					</tr>
					<tr>
						<td class="tdLabel">确认密码：</td>
						<td class="tdInput"><input class="input" type="password"
							name="reloginpass" id="reloginpass" value="${form.reloginpass }" /></td>
						<td class="tdError"><label class="labelError"
							id="reloginpassError">${errors.reloginpass }</label></td>
					</tr>
					<tr>
						<td class="tdLabel">电子邮件：</td>
						<td class="tdInput"><input class="input" type="email"
							name="email" id="email" value="${form.email }" /></td>
						<td class="tdError"><label class="labelError" id="emailError">${errors.email }</label></td>
					</tr>
					<tr>
						<td class="tdLabel">验证码：</td>
						<td class="tdInput"><input class="input" type="text"
							name="verifyCode" id="verifyCode" value="${form.verifyCode }" /></td>
						<td class="tdError"><label class="labelError"
							id="verifyCodeError">${errors.verifyCode }</label></td>
					</tr>
					<tr>
						<td></td>
						<td>
							<div class="verifyCodeImg">
								<img id="vCode" width="100"
									src="<c:url value='/VerifyCodeServlet'/>" />
							</div>
						</td>
						<td class="tdError"><a href="javascript: _change()">换一张</a></td>
					</tr>
					<tr>
						<td></td>
						<td><input class="btn btn-primary btn-block" type="submit"
							value="立即注册" /></td>
						<td></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</body>
</html>